<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"singleplus.gitee.io","root":"/blog/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="&amp;emsp;&amp;emsp;一步步对照着教程来配置Hexo实属不易，所以第一篇博客就记录下我踩过的坑吧，给同学们做个参考。 404问题汇总(我遇到过的)博客首页404&amp;emsp;&amp;emsp;当我们按照教程，一步一步配置完环境后，部署到Gitee Pages(别问，问就是快)上，点击给出的网页，忽然发现出现404！！！     &amp;emsp;&amp;emsp;不要慌，首先检查配置文件 _config.yml中的">
<meta property="og:type" content="article">
<meta property="og:title" content="Gitee+Hexo配置个人博客中的坑">
<meta property="og:url" content="https://singleplus.gitee.io/blog/2020/06/22/Gitee-Hexo%E9%85%8D%E7%BD%AE%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E4%B8%AD%E7%9A%84%E5%9D%91/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="&amp;emsp;&amp;emsp;一步步对照着教程来配置Hexo实属不易，所以第一篇博客就记录下我踩过的坑吧，给同学们做个参考。 404问题汇总(我遇到过的)博客首页404&amp;emsp;&amp;emsp;当我们按照教程，一步一步配置完环境后，部署到Gitee Pages(别问，问就是快)上，点击给出的网页，忽然发现出现404！！！     &amp;emsp;&amp;emsp;不要慌，首先检查配置文件 _config.yml中的">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://gitee.com/SinglePlus/Image/raw/master/imgs/%E9%9C%87%E6%83%8A.jpg">
<meta property="og:image" content="https://gitee.com/SinglePlus/Image/raw/master/imgs/%E9%9C%87%E6%83%8A.jpg">
<meta property="og:image" content="https://gitee.com/SinglePlus/Image/raw/master/imgs/20200622233843.png">
<meta property="article:published_time" content="2020-06-22T14:10:47.000Z">
<meta property="article:modified_time" content="2020-07-22T10:02:59.618Z">
<meta property="article:author" content="Cheng">
<meta property="article:tag" content="Gitee">
<meta property="article:tag" content="Hexo">
<meta property="article:tag" content="坑">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/SinglePlus/Image/raw/master/imgs/%E9%9C%87%E6%83%8A.jpg">

<link rel="canonical" href="https://singleplus.gitee.io/blog/2020/06/22/Gitee-Hexo%E9%85%8D%E7%BD%AE%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E4%B8%AD%E7%9A%84%E5%9D%91/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'en'
  };
</script>

  <title>Gitee+Hexo配置个人博客中的坑 | Hexo</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Hexo</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>Categories</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
    <link itemprop="mainEntityOfPage" href="https://singleplus.gitee.io/blog/2020/06/22/Gitee-Hexo%E9%85%8D%E7%BD%AE%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E4%B8%AD%E7%9A%84%E5%9D%91/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.gif">
      <meta itemprop="name" content="Cheng">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Gitee+Hexo配置个人博客中的坑
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2020-06-22 22:10:47" itemprop="dateCreated datePublished" datetime="2020-06-22T22:10:47+08:00">2020-06-22</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2020-07-22 18:02:59" itemprop="dateModified" datetime="2020-07-22T18:02:59+08:00">2020-07-22</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Hexo%E9%85%8D%E7%BD%AE/" itemprop="url" rel="index"><span itemprop="name">Hexo配置</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>&emsp;&emsp;一步步对照着教程来配置Hexo实属不易，所以第一篇博客就记录下我踩过的坑吧，给同学们做个参考。</p>
<h2 id="404问题汇总-我遇到过的"><a href="#404问题汇总-我遇到过的" class="headerlink" title="404问题汇总(我遇到过的)"></a>404问题汇总(我遇到过的)</h2><h3 id="博客首页404"><a href="#博客首页404" class="headerlink" title="博客首页404"></a>博客首页404</h3><p>&emsp;&emsp;当我们按照教程，一步一步配置完环境后，部署到Gitee Pages(别问，问就是快)上，点击给出的网页，忽然发现出现404！！！</p>
<div align=center>
<img src="https://gitee.com/SinglePlus/Image/raw/master/imgs/震惊.jpg">
</div>

<p>&emsp;&emsp;不要慌，首先检查配置文件 <code>_config.yml</code>中的 <code>URL</code>选项<br><figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"># URL</span><br><span class="line">## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'</span><br><span class="line">url: https:<span class="comment">//singleplus.gitee.io/blog</span></span><br><span class="line">root: <span class="regexp">/blog</span></span><br><span class="line"><span class="regexp">permalink: :year/</span>:month/:day/:title/</span><br><span class="line">permalink_defaults:</span><br><span class="line">pretty_urls:</span><br><span class="line">  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks</span><br><span class="line">  trailing_html: true # Set to false to remove trailing '.html' from permalinks</span><br></pre></td></tr></table></figure></p>
<p>&emsp;&emsp;检查 <code>URL:</code>后是不是形如<code>https://UserName.gitee.io/R_name</code>，其中 <code>UserName</code>是Gitee用户名，<code>R_name</code>是仓库名字，在这里声明下，我这里采用的是二级结构访问的，就是 <code>blog</code>并不是我的用户名，如果想以 <code>https://UserName.gitee.io/</code>访问，就直接将仓库名字命名成和用户名相同；<br>&emsp;&emsp;如果是二级目录访问， <code>root</code>后应该是 <code>/R_name</code>，如果是一级目录访问应该是 <code>root:/</code></p>
<h3 id="Next-home标签404"><a href="#Next-home标签404" class="headerlink" title="Next home标签404"></a>Next home标签404</h3><p>&emsp;&emsp;解决了上面的问题后，终于看到了博客页面，觉得自己走到了终点，到达了高潮，点击<code>home</code>标签，<strong>404</strong></p>
<div align=center>
<img src="https://gitee.com/SinglePlus/Image/raw/master/imgs/震惊.jpg">
</div>

<p>&emsp;&emsp;将鼠标置于 <code>Home</code>，点击检查，发现有个<code>%20</code>，这是<code>Next</code>里面自带的空格，我们需要到<strong>主题的配置文件</strong> <code>_config.yml</code>中修改如下代码段（我这边是部分），将<code>||</code>前的空格去掉，就可以了<br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">menu:</span><br><span class="line">  home: <span class="regexp">/|| fa fa-home</span></span><br><span class="line"><span class="regexp">  tags: /</span>tags/|| fa fa-tags</span><br><span class="line">  categories: <span class="regexp">/categories/</span>|| fa fa-th</span><br><span class="line">  archives: <span class="regexp">/archives/</span>|| fa fa-archive</span><br></pre></td></tr></table></figure><br>&emsp;&emsp;<strong>不出意外的话</strong>，博客现在应该是能够正常使用了</p>
<h3 id="改了之后还是404的"><a href="#改了之后还是404的" class="headerlink" title="改了之后还是404的"></a>改了之后还是404的</h3><p>&emsp;&emsp;浏览器还有一个非常蛋疼的功能，就是在改过部分内容之后，有的内容的改变可能并不会提现到你的博客中，所以需要打开下图中的 <code>Disable cache</code>(打钩懂吗)</p>
<div align=center>
<img src="https://gitee.com/SinglePlus/Image/raw/master/imgs/20200622233843.png">
</div>

<h2 id="公式无法渲染"><a href="#公式无法渲染" class="headerlink" title="公式无法渲染"></a>公式无法渲染</h2><p>&emsp;&emsp;作为一个理工科男，上传的博客中，很多时候会用到公式表达我的思想，但是在写博客的时候发现博客无法渲染，于是在网上找到的解决</p>
<h3 id="下载Mathjax插件"><a href="#下载Mathjax插件" class="headerlink" title="下载Mathjax插件"></a>下载Mathjax插件</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-math –save</span><br></pre></td></tr></table></figure>
<h3 id="更换渲染引擎"><a href="#更换渲染引擎" class="headerlink" title="更换渲染引擎"></a>更换渲染引擎</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm uninstall hexo-renderer-marked –save</span><br><span class="line">npm install hexo-renderer-kramed –save</span><br></pre></td></tr></table></figure>
<h3 id="解决语义冲突"><a href="#解决语义冲突" class="headerlink" title="解决语义冲突"></a>解决语义冲突</h3><p><code>node_modules\kramed\lib\rules\inline.js</code>中的<code>kramed</code>只有<strong>装完</strong><code>kramed</code>渲染引擎后才有，改掉11行<br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//escape: /^\\([\\`*&#123;&#125;\[\]()#$+\-.!_&gt;])/,</span></span><br><span class="line"><span class="built_in">escape</span>: <span class="regexp">/^\\([`*\[\]()#$+\-.!_&gt;])/</span>,</span><br></pre></td></tr></table></figure><br>改掉20行<br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//  em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,</span></span><br><span class="line">em: <span class="regexp">/^\*((?:\*\*|[\s\S])+?)\*(?!\*)/</span>,</span><br></pre></td></tr></table></figure></p>
<h3 id="更改-config-yml"><a href="#更改-config-yml" class="headerlink" title="更改_config.yml"></a>更改<code>_config.yml</code></h3><p>更改<code>themes</code>文件夹下具体某一个主题的<code>_config.yml</code>，改成下面形式<br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"># MathJax Support</span><br><span class="line">mathjax:</span><br><span class="line">  enable: <span class="literal">true</span></span><br><span class="line">  per_page: <span class="literal">true</span></span><br><span class="line">  #cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML</span><br><span class="line">  cdn: <span class="comment">//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML</span></span><br></pre></td></tr></table></figure></p>
<h3 id="写博客"><a href="#写博客" class="headerlink" title="写博客"></a>写博客</h3><p>写博客的时候在开头加上<code>mathjax: true</code><br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mathjax: <span class="literal">true</span></span><br></pre></td></tr></table></figure></p>
<script type="math/tex; mode=display">f(x)=\frac{f(a)}{0 !}+\frac{f^{\prime}(a)}{1 !}(x-a)+\frac{f^{\prime \prime}(a)}{2 !}(x-a)^{2}+\ldots+\frac{f^{(n)}(a)}{n !}(x-a)^{n}+R_{n}(x)</script>
    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/Gitee/" rel="tag"># Gitee</a>
              <a href="/blog/tags/Hexo/" rel="tag"># Hexo</a>
              <a href="/blog/tags/%E5%9D%91/" rel="tag"># 坑</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/blog/2020/06/22/hello-world/" rel="prev" title="Hello World">
      <i class="fa fa-chevron-left"></i> Hello World
    </a></div>
      <div class="post-nav-item">
    <a href="/blog/2020/07/15/%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84/" rel="next" title="树状数组">
      树状数组 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#404问题汇总-我遇到过的"><span class="nav-number">1.</span> <span class="nav-text">404问题汇总(我遇到过的)</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#博客首页404"><span class="nav-number">1.1.</span> <span class="nav-text">博客首页404</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Next-home标签404"><span class="nav-number">1.2.</span> <span class="nav-text">Next home标签404</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#改了之后还是404的"><span class="nav-number">1.3.</span> <span class="nav-text">改了之后还是404的</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#公式无法渲染"><span class="nav-number">2.</span> <span class="nav-text">公式无法渲染</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#下载Mathjax插件"><span class="nav-number">2.1.</span> <span class="nav-text">下载Mathjax插件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#更换渲染引擎"><span class="nav-number">2.2.</span> <span class="nav-text">更换渲染引擎</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#解决语义冲突"><span class="nav-number">2.3.</span> <span class="nav-text">解决语义冲突</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#更改-config-yml"><span class="nav-number">2.4.</span> <span class="nav-text">更改_config.yml</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#写博客"><span class="nav-number">2.5.</span> <span class="nav-text">写博客</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Cheng</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">4</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/blog/tags/">
          
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Cheng</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a>
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/blog/lib/anime.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/muse.js"></script>


<script src="/blog/js/next-boot.js"></script>




  















  

  
      

<script>
  if (typeof MathJax === 'undefined') {
    window.MathJax = {
      loader: {
          load: ['[tex]/mhchem'],
        source: {
          '[tex]/amsCd': '[tex]/amscd',
          '[tex]/AMScd': '[tex]/amscd'
        }
      },
      tex: {
        inlineMath: {'[+]': [['$', '$']]},
          packages: {'[+]': ['mhchem']},
        tags: 'ams'
      },
      options: {
        renderActions: {
          findScript: [10, doc => {
            document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
              const display = !!node.type.match(/; *mode=display/);
              const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
              const text = document.createTextNode('');
              node.parentNode.replaceChild(text, node);
              math.start = {node: text, delim: '', n: 0};
              math.end = {node: text, delim: '', n: 0};
              doc.math.push(math);
            });
          }, '', false],
          insertedScript: [200, () => {
            document.querySelectorAll('mjx-container').forEach(node => {
              let target = node.parentNode;
              if (target.nodeName.toLowerCase() === 'li') {
                target.parentNode.classList.add('has-jax');
              }
            });
          }, '', false]
        }
      }
    };
    (function () {
      var script = document.createElement('script');
      script.src = '//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
      script.defer = true;
      document.head.appendChild(script);
    })();
  } else {
    MathJax.startup.document.state(0);
    MathJax.texReset();
    MathJax.typeset();
  }
</script>

    

  

</body>
</html>
